import React from "react";
import { NavBar, Space, Toast ,Button} from 'antd-mobile'
import { useNavigate } from 'react-router-dom';
import { SearchOutline, MoreOutline, CloseOutline } from 'antd-mobile-icons'
import Myarchives from "../../components/Myarchives"
import img1 from '../../assets/no_message.png'
import './style.module.css'
const index = () => {
    const navigate = useNavigate()
     const MyInput = () => {
        navigate("/MyarchiesInput")
    }
    const back = () => {
        // 返回上一页
        window.history.go(-1);
    }
    return (
        <div>
            <header>
                <NavBar onBack={back}>我的档案</NavBar>
            </header>
            <main>
            </main>
            <Button block color='primary' size='large' onClick={() =>MyInput()}>
                添加
            </Button>
        </div>
    )
};


export default index;